package matlap.database.dao;

import java.util.List;

import matlap.shared.Teacher;
import matlap.shared.exceptions.MyException;

public interface TeacherDAO {
	int getTeachersNumber();

	List<Teacher> getTeachers();

	List<Teacher> selectTeachersName();

	List<Teacher> getTeachersByName(String name);

	List<String> getUserNames();

	Teacher getTeacherByUserName(String username);

	void updateTeacher(String username, String firstname, String lastname,
			String address, int accept) throws MyException;

	void deleteTeacher(String username) throws MyException;
}
